﻿using Caliburn.Micro;

using Cooking.Client.ViewModels;

namespace Cooking.Client.Services
{
    public class ApplicationController : IApplicationController
    {
        private readonly IWindowManager windowManager;

        public ApplicationController(IWindowManager windowManager)
        {
            this.windowManager = windowManager;
        }

        public void ShowRecipeAddingDialog()
        {
            var newRecipeViewModel = IoC.GetInstance(typeof(NewRecipeViewModel), null);
            windowManager.ShowDialog(newRecipeViewModel);
        }
    }
}